package com.jiyun.controller;

import com.jiyun.pojo.entity.Order;
import com.jiyun.service.HouTaiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("houtai")
public class HouTaiController {

    @Autowired
    private HouTaiService houTaiService;
    //审核通过
    @RequestMapping("shenhetongguo")
    public void shenhetongguo(Integer oid){
        houTaiService.shenhetongguo(oid);
    }
    //审核未通过
    @RequestMapping("shenheweitongguo")
    public Order shenheweitongguo(Integer oid,String refused){
        return houTaiService.shenheweitongguo(oid,refused);
    }
    @RequestMapping("selectWherestatusid")
    public List<Order> selectWherestatusid(){
        return houTaiService.selectWherestatusid();
    }
}
